﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var moneytypeData = Jxstar.findComboData('moneytype');
	var project_stageData = Jxstar.findComboData('project_stage');
	var yesnoData = Jxstar.findComboData('yesno');
	var ysdeptData = Jxstar.findComboData('ysdept');
	var auditData = Jxstar.findComboData('audit');

	var cols = [
	{col:{header:'项目编号', width:100, sortable:true}, field:{name:'v_process__project_code',type:'string'}},
	{col:{header:'项目名称', width:100, sortable:true}, field:{name:'v_process__project_name',type:'string'}},
	{col:{header:'实施单位', width:100, sortable:true}, field:{name:'v_process__dept_name',type:'string'}},
	{col:{header:'项目类型', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: moneytypeData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: moneytypeData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < moneytypeData.length; i++) {
				if (moneytypeData[i][0] == value)
					return moneytypeData[i][1];
			}
		}}, field:{name:'v_process__money_type',type:'string'}},
	{col:{header:'项目阶段', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: project_stageData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: project_stageData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < project_stageData.length; i++) {
				if (project_stageData[i][0] == value)
					return project_stageData[i][1];
			}
		}}, field:{name:'v_process__project_stage',type:'string'}},
	{col:{header:'是否延期', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: yesnoData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: yesnoData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < yesnoData.length; i++) {
				if (yesnoData[i][0] == value)
					return yesnoData[i][1];
			}
		}}, field:{name:'v_process__is_defer',type:'string'}},
	{col:{header:'计划论证完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_projectlz',type:'date'}},
	{col:{header:'实际论证完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_lz',type:'date'}},
	{col:{header:'计划招投标完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_ztb',type:'date'}},
	{col:{header:'实际招投标完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_sjztb',type:'date'}},
	{col:{header:'计划合同签订日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_contract',type:'date'}},
	{col:{header:'实际合同签订日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_ht',type:'date'}},
	{col:{header:'计划施工完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_projectend',type:'date'}},
	{col:{header:'实际实施完成日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_done',type:'date'}},
	{col:{header:'计划内部验收日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_check',type:'date'}},
	{col:{header:'实际内部验收日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_yans',type:'date'}},
	{col:{header:'计划单项验收日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_checkone',type:'date'}},
	{col:{header:'计划财务决算日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_moneycheck',type:'date'}},
	{col:{header:'实际财务决算日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_jues',type:'date'}},
	{col:{header:'计划竣工验收日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_checkend',type:'date'}},
	{col:{header:'实际竣工验收日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m') : '';
		}}, field:{name:'v_process__date_sjjg',type:'date'}},
	{col:{header:'验收单位', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: ysdeptData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: ysdeptData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < ysdeptData.length; i++) {
				if (ysdeptData[i][0] == value)
					return ysdeptData[i][1];
			}
		}}, field:{name:'v_process__ys_dept',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'v_process__process_id',type:'string'}},
	{col:{header:'部门ID', width:100, sortable:true, hidden:true}, field:{name:'v_process__dept_id',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'v_process__project_id',type:'string'}},
	{col:{header:'记录状态', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'v_process__auditing',type:'string'}},
	{col:{header:'是否结转', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: yesnoData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: yesnoData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < yesnoData.length; i++) {
				if (yesnoData[i][0] == value)
					return yesnoData[i][1];
			}
		}}, field:{name:'v_process__is_turn',type:'string'}},
	{col:{header:'是否上报国家局', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: yesnoData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: yesnoData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < yesnoData.length; i++) {
				if (yesnoData[i][0] == value)
					return yesnoData[i][1];
			}
		}}, field:{name:'v_process__up_comp',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '0',
		funid: 'project_process_sit'
	};
	
	
		
	return new Jxstar.GridNode(config);
}